#include<iostream>

using namespace std;

int f[100][100];

int main(void) {
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		for (int j = 0; j <= i; j++) {
			if(j == 0 || j == i) {
				f[i][j] = 1;
			} else {
				f[i][j] = f[i - 1][j] + f[i - 1][j - 1];
			}
		}
	}
	for (int i = 0; i < n; i++) {
		for (int j = 0; j <= i; j++) {
			cout << f[i][j] << ends;
		}
		cout << endl;
	}
	return 0;
}
